package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TopuConf entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TOPU_CONF")
public class TopuConf implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 4122709989203553963L;

    // Fields
    private Long id;
    private String name;
    private Long resId;
    private String xml;
    private Long catalogId;

    // Constructors

    /** default constructor */
    public TopuConf() {
    }

    /** minimal constructor */
    public TopuConf(Long id) {
        this.id = id;
    }

    /** full constructor */
    public TopuConf(Long id, String name, Long resId, String xml, Long catalogId) {
        this.id = id;
        this.name = name;
        this.resId = resId;
        this.xml = xml;
        this.catalogId = catalogId;
    }

    // Property accessors
    @Id
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "TOPU_CONF_SEQ")
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "NAME", length = 128)
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "RES_ID", precision = 18, scale = 0)
    public Long getResId() {
        return this.resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "XML")
    public String getXml() {
        return this.xml;
    }

    public void setXml(String xml) {
        this.xml = xml;
    }

    @Column(name = "CATALOG_ID", precision = 18, scale = 0)
    public Long getCatalogId() {
        return this.catalogId;
    }

    public void setCatalogId(Long catalogId) {
        this.catalogId = catalogId;
    }

    @Override
    public String toString() {
        return "TopuConf [id=" + id + ", name=" + name + ", resId=" + resId + ", catalogId=" + catalogId + "]";
    }

}